package com.icetech.eom.service.ws;

import com.icetech.commonbase.JsonTools;
import com.icetech.eom.domain.response.WebServiceResponse;
import com.icetech.eom.service.Spring;
import com.icetech.eom.service.ws.cust.SpringAppServer;
import org.springframework.beans.BeansException;

/**
 * app 鉴权实现
 * @author wangzw
 */
public class AppServer  {

    public String Login(String para) {
        SpringAppServer springAppServer;
        WebServiceResponse webServiceResponse = new WebServiceResponse();
        try {
            springAppServer = Spring.getBean("springAppServer");
            String reslut = springAppServer.login(para);
            return reslut;
        } catch (BeansException e) {
            webServiceResponse.setState(-1+"");
            webServiceResponse.setRetmsg("系统异常");
            return JsonTools.toString(webServiceResponse);
        }
    }
}
